#ifndef __SD_SADDLE_INTEGER_TABLE_H__
#define __SD_SADDLE_INTEGER_TABLE_H__

#include "table.hpp"
#include <set>

class IntegerTable : public SeaDrip::Table<int>
{
public:
    IntegerTable(const unsigned int w, const unsigned int h, const int* d) : SeaDrip::Table<int>(w, h, d) {}
    const std::set<SeaDrip::Coordinate2D> GetSaddles() const;

protected:
    const std::set<unsigned int> MaxIndexesInLine(const unsigned int line) const;
    const std::set<unsigned int> MinIndexesInRow(const unsigned int row) const;
};

#endif
